
//创建一个mutations对象
export default {
  //必须是同步函数
  increament(state) {
    state.count++
  },
  // increamentN(state,n){
  //   state.count+=n
  // }
  increamentN(state, { n }) {
    state.count += n
  },
  setMovieList(state, movieList) {
    state.movieList = movieList;
  },
}